﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace QuanLyChoVay
{
    public partial class frmHopdong : Form
    {
        connect conn;
        public frmHopdong()
        {
            conn = new connect();
            InitializeComponent();
        }
        DataTable dt = new DataTable();
        SqlDataReader rd;
        private void frmHopdong_Load(object sender, EventArgs e)
        {
            SqlCommand cmd = new SqlCommand();

            cmd.CommandText = "select * from ThongTinKhachHang";
            cmd.Connection = conn.getconnect();

            rd = cmd.ExecuteReader();
            dt.Load(rd);
            dtgThongTinUser.DataSource = dt;
        }
    }
}
